package com.corecloud.mapper.mysql;

import com.corecloud.entity.SysUserEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

import java.util.Map;


/**
 * 用户表
 * 
 * @author CCW
 * @email 452050507@qq.com
 * @date 2020-09-08 18:18:41
 */
@Mapper
public interface SysUserMapper extends BaseMapper<SysUserEntity> {

	/**
	 * 根据用户名称更新用户当前是否启用状态
	 * @param map
	 */
	@Update({"update sys_user sur set sur.is_valid=#{isValid} where sur.user_name = #{userName} "})
	void updateUserIsValid(Map<String, Object> map);
}
